package Stream;

import java.io.File;
import java.io.FileInputStream;

public class Fsm {
    public static void main (String[] args) throws Exception{
        File file = new File("F:/test.txt");
        FileInputStream fis = new FileInputStream(file);
        int length = (int)file.length();
        byte[] data = new byte[length];
        fis.read(data);
        fis.close();
        String str = new String(data);
        System.out.println(str);
    }
}
